package Com.Hfzk.Bdqn;

import java.util.Scanner;

public class Job09 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int a,b,c,Max,Middle,Min;
        System.out.print("输入三个整数:");
        a = input.nextInt();
        b = input.nextInt();
        c = input.nextInt();

        Max = a;
        if (b>a && b>c){
            Max = b;
        }
        if (c>a && c>b){
            Max = c;
        }
        Min = a;
        if (b<a && b<c){
            Min = b;
        }
        if (c<a && c<b){
            Min = c;
        }
        Middle = (a+b+c)-(Max+Min);
        System.out.println("Min" +Min+ "," +Middle+ "," +Max+ "Max");
    }
}
